Namespace Producto
Public Class FormaSimple
	Inherits Auditoria.Transaccion

	Private vFormaSimpleId As Integer = -1
	Private vNombre As String = ""

	Public Property FormaSimpleId() As Integer
		Get
			Return vFormaSimpleId
		End Get
		Set(ByVal Value As Integer)
			vFormaSimpleId = Value
		End Set
	End Property

	Public Property Nombre() As String
		Get
			Return vNombre
		End Get
		Set(ByVal Value As String)
			vNombre = Value
		End Set
	End Property

	Sub New()
	End Sub

	Sub New(ByRef FormaSimpleId As Integer, ByVal nombre As String)
		vFormaSimpleId = FormaSimpleId
		vNombre = Nombre
	End Sub

End Class



 Public Class FormaSimpleCol   
 Inherits System.Collections.CollectionBase
Private _enmSortDirection As SortDirection
Public Sub New()
_enmSortDirection = SortDirection.Asc
End Sub
Public Sub Sort(ByVal sortExpression As String, ByVal sortDirection As SortDirection)
InnerList.Sort(New Comparer(sortExpression, SortDirection))
End Sub
Public Sub Sort(ByVal sortExpression As String)
InnerList.Sort(New Comparer(sortExpression, _enmSortDirection))
If _enmSortDirection = SortDirection.Asc Then
_enmSortDirection = SortDirection.Desc
Else
_enmSortDirection = SortDirection.Asc
End If
End Sub
Public Function Add(ByVal obj As FormaSimple) As Integer
Return MyBase.List.Add(obj)
End Function
Public Sub AddPrimero(ByVal obj As FormaSimple)
MyBase.List.Insert(0, obj)
End Sub
Public ReadOnly Property FormaSimple(ByVal Index As Integer) As FormaSimple
Get
Return CType(MyBase.List(Index), FormaSimple)
End Get
End Property
End Class
end namespace

